home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Updates / PowerPC / pdflib / Makefile.in < prev    next >
Makefile  |  2000-05-16  |  10KB  |  395 lines

  1. # Main PDFlib Makefile
  2.  
  3. VERSION = @VERSION@
  4.  
  5. SHELL = @SHELL@
  6. INSTALL = @INSTALL@
  7.  
  8. VPATH = @srcdir@
  9. srcdir = @srcdir@
  10.  
  11. EXE =  @EXE@
  12. OBJ = @OBJ@
  13. AR = @AR@
  14. RANLIB = @RANLIB@
  15. CC    = @CC@
  16. RM      = @RM@
  17.  
  18. # installation directories
  19. prefix = @prefix@
  20. exec_prefix = @exec_prefix@
  21.  
  22. # directories for the final library and include files for PDFlib users
  23. libdir = @libdir@
  24. includedir = @includedir@
  25.  
  26. DIRNAME = pdflib-$(VERSION)
  27. TARFILE = pdflib-$(VERSION).tar
  28. ZIPFILE = pdflib-$(VERSION).zip
  29.  
  30. # ------------------------- default target  -------------------------------
  31.  
  32. all:    pdflib @BINDINGS@
  33.  
  34. pdflib::
  35.     cd pdflib && $(MAKE)
  36.  
  37. clients: pdflib
  38.     -cd clients && $(MAKE)
  39.  
  40. pdflib_c: pdflib
  41.     -cd bind/c && $(MAKE)
  42.  
  43. pdflib_cpp: pdflib
  44.     -cd bind/cpp && $(MAKE)
  45.  
  46. pdflib_java: pdflib
  47.     -cd bind/java && $(MAKE)
  48.  
  49. pdflib_perl: pdflib
  50.     -cd bind/perl && $(MAKE)
  51.  
  52. pdflib_python: pdflib
  53.     -cd bind/python && $(MAKE)
  54.  
  55. pdflib_tcl: pdflib
  56.     -cd bind/tcl && $(MAKE)
  57.  
  58. # --------------------------- test ---------------------------------
  59.  
  60. test: pdflib pdflib_test @BINDINGS_TEST@
  61.  
  62. pdflib_test:
  63.     -cd test; $(MAKE) test
  64.     -cd clients && $(MAKE) test
  65.  
  66. pdflib_c_test:
  67.     -cd bind/c && $(MAKE) test
  68.  
  69. pdflib_cpp_test:
  70.     -cd bind/cpp && $(MAKE) test
  71.  
  72. pdflib_java_test:
  73.     -cd bind/java && $(MAKE) test
  74.  
  75. pdflib_perl_test:
  76.     -cd bind/perl && $(MAKE) test
  77.  
  78. pdflib_python_test:
  79.     -cd bind/python && $(MAKE) test
  80.  
  81. pdflib_tcl_test:
  82.     -cd bind/tcl && $(MAKE) test
  83.  
  84. # --------------------------- install ---------------------------------
  85.  
  86. install: pdflib_install @BINDINGS_INSTALL@
  87.  
  88. pdflib_install:
  89.     -cd pdflib && $(MAKE) install
  90.  
  91. # No install to be done for C and C++ bindings
  92. pdflib_c_install:
  93.  
  94. pdflib_cpp_install:
  95.  
  96. pdflib_java_install:
  97.     -cd bind/java && $(MAKE) install
  98.  
  99. pdflib_perl_install:
  100.     -cd bind/perl && $(MAKE) install
  101.  
  102. pdflib_python_install:
  103.     -cd bind/python && $(MAKE) install
  104.  
  105. pdflib_tcl_install:
  106.     -cd bind/tcl && $(MAKE) install
  107.  
  108. # --------------------------- uninstall ---------------------------------
  109.  
  110. uninstall: pdflib_uninstall @BINDINGS_UNINSTALL@
  111.  
  112. pdflib_uninstall:
  113.     -cd pdflib && $(MAKE) uninstall
  114.  
  115. pdflib_c_uninstall:
  116.     -cd bind/c && $(MAKE) uninstall
  117.  
  118. pdflib_cpp_uninstall:
  119.     -cd bind/cpp && $(MAKE) uninstall
  120.  
  121. pdflib_java_uninstall:
  122.     -cd bind/java && $(MAKE) uninstall
  123.  
  124. pdflib_perl_uninstall:
  125.     -cd bind/perl && $(MAKE) uninstall
  126.  
  127. pdflib_python_uninstall:
  128.     -cd bind/python && $(MAKE) uninstall
  129.  
  130. pdflib_tcl_uninstall:
  131.     -cd bind/tcl && $(MAKE) uninstall
  132.     
  133. clean:
  134.     -cd pdflib && $(MAKE) clean
  135.     -cd bind/c && $(MAKE) clean
  136.     -cd bind/cpp && $(MAKE) clean
  137.     -cd bind/java && $(MAKE) clean
  138.     -cd bind/perl && $(MAKE) clean
  139.     -cd bind/python && $(MAKE) clean
  140.     -cd bind/tcl && $(MAKE) clean
  141.     -cd test && $(MAKE) clean
  142.     -cd clients && $(MAKE) clean
  143.     -cd util && $(MAKE) clean
  144.  
  145. distclean: clean
  146.     -$(RM) config.cache config.log config.status Makefile bind/c/Makefile bind/cpp/Makefile bind/java/Makefile bind/perl/Makefile bind/python/Makefile bind/tcl/Makefile test/Makefile pdflib/Makefile clients/Makefile util/Makefile
  147.  
  148. maintainer-clean:
  149.     -cd pdflib && $(MAKE) maintainer-clean
  150.     -cd bind/c && $(MAKE) maintainer-clean
  151.     -cd bind/cpp && $(MAKE) maintainer-clean
  152.     -cd bind/java && $(MAKE) maintainer-clean
  153.     -cd bind/perl && $(MAKE) maintainer-clean
  154.     -cd bind/python && $(MAKE) maintainer-clean
  155.     -cd bind/tcl && $(MAKE) maintainer-clean
  156.     -cd test && $(MAKE) maintainer-clean
  157.     -cd clients && $(MAKE) maintainer-clean
  158.     -cd util && $(MAKE) maintainer-clean
  159.     -$(RM) $(TARFILE).gz $(ZIPFILE)
  160.  
  161. FORCE:
  162.  
  163. # Distribution file listing ---------------------------------------------
  164. PDFLIBFILES =             \
  165.     pdflib/p_afmparse.c    \
  166.     pdflib/p_annots.c    \
  167.     pdflib/p_basic.c    \
  168.     pdflib/p_ccitt.c    \
  169.     pdflib/p_color.c    \
  170.     pdflib/p_draw.c        \
  171.     pdflib/p_filter.c    \
  172.     pdflib/p_font.c        \
  173.     pdflib/p_gif.c        \
  174.     pdflib/p_gstate.c    \
  175.     pdflib/p_hyper.c    \
  176.     pdflib/p_image.c    \
  177.     pdflib/p_jpeg.c        \
  178.     pdflib/p_text.c        \
  179.     pdflib/p_tiff.c        \
  180.     pdflib/p_util.c        \
  181.     pdflib/ansi_e.h        \
  182.     pdflib/macrom_e.h    \
  183.     pdflib/p_afmparse.h    \
  184.     pdflib/p_intern.h    \
  185.     pdflib/p_metrics.h    \
  186.     pdflib/pdfdoc_e.h    \
  187.     pdflib/p_config.h    \
  188.     pdflib/pdflib.i        \
  189.     pdflib/pdflib.h
  190.  
  191. CLIENTFILES = \
  192.     clients/pdfimage.c    \
  193.     clients/pdfgraph.c    \
  194.     clients/text2pdf.c
  195.  
  196. DOCFILES = \
  197.     readme.txt            \
  198.     doc/install.txt            \
  199.     doc/compatibility.txt        \
  200.     doc/changes.txt            \
  201.     bind/c/readme.txt        \
  202.     bind/cpp/readme.txt        \
  203.     bind/java/readme.txt        \
  204.     bind/perl/readme.txt        \
  205.     bind/python/readme.txt        \
  206.     bind/tcl/readme.txt        \
  207.     bind/vb/readme.txt
  208.  
  209. PDFFILES = \
  210.     doc/PDFlib.pdf        \
  211.     doc/license.pdf
  212.  
  213. TESTFILES = \
  214.     test/pdftest.c        \
  215.     test/nesrin.jpg        \
  216.     test/tm.g3        \
  217.     test/pdflib.gif        \
  218.     test/acroweb_j.tif    \
  219.     test/graphdata
  220.  
  221. BINDFILES = \
  222.     bind/cgi/pdfclock.cgi    \
  223.     bind/c/hello.c        \
  224.     bind/c/pdfclock.c    \
  225.     bind/cpp/pdflib.cpp    \
  226.     bind/cpp/pdflib.hpp    \
  227.     bind/cpp/hello.cpp    \
  228.     bind/cpp/pdfclock.cpp    \
  229.     bind/java/pdflib_java.c    \
  230.     bind/java/pdflib.java    \
  231.     bind/java/hello.java    \
  232.     bind/java/pdfclock.java    \
  233.     bind/perl/pdflib_pl.c    \
  234.     bind/perl/Makefile.PL.in \
  235.     bind/perl/pdflib.pm    \
  236.     bind/perl/hello.pl    \
  237.     bind/perl/pdfclock.pl    \
  238.     bind/python/pdflib_py.c    \
  239.     bind/python/hello.py    \
  240.     bind/python/pdfclock.py    \
  241.     bind/tcl/pdflib_tcl.c    \
  242.     bind/tcl/pkgIndex.tcl    \
  243.     bind/tcl/hello.tcl    \
  244.     bind/tcl/pdfclock.tcl    \
  245.     bind/vb/hello.bas    \
  246.     bind/vb/pdfclock.bas    \
  247.     bind/vb/pdflib_vb.def    \
  248.     bind/vb/pdflib_vb.idl
  249.  
  250. BUILDFILES = \
  251.     Makefile.in        \
  252.     configure        \
  253.     configure.in        \
  254.     PDFlib.dsw        \
  255.     PDFlib.mcp        \
  256.     bind/c/Makefile.in    \
  257.     bind/c/c.dsp        \
  258.     bind/cpp/Makefile.in    \
  259.     bind/cpp/Cplusplus.dsp    \
  260.     bind/java/Makefile.in    \
  261.     bind/java/Java.dsp    \
  262.     bind/perl/Makefile.in    \
  263.     bind/perl/Perl.dsp    \
  264.     bind/python/Makefile.in    \
  265.     bind/python/Python.dsp    \
  266.     bind/tcl/Makefile.in    \
  267.     bind/tcl/Tcl.dsp    \
  268.     bind/vb/VisualBasic.dsp    \
  269.     clients/Makefile.in    \
  270.     pdflib/Makefile.in    \
  271.     pdflib/pdflib.dsp    \
  272.     pdflib/pdflib_static.dsp    \
  273.     test/Makefile.in    \
  274.     test/test.dsp        \
  275.     util/Makefile.in    \
  276.     util/install-sh
  277.  
  278. AFMFILES = \
  279.     fonts/Courier.afm        \
  280.     fonts/Courier-Bold.afm        \
  281.     fonts/Courier-Oblique.afm    \
  282.     fonts/Courier-BoldOblique.afm    \
  283.     fonts/Helvetica.afm        \
  284.     fonts/Helvetica-Bold.afm    \
  285.     fonts/Helvetica-Oblique.afm    \
  286.     fonts/Helvetica-BoldOblique.afm    \
  287.     fonts/Symbol.afm        \
  288.     fonts/Times-Roman.afm        \
  289.     fonts/Times-Bold.afm        \
  290.     fonts/Times-Italic.afm        \
  291.     fonts/Times-BoldItalic.afm    \
  292.     fonts/ZapfDingbats.afm        \
  293.     fonts/pdflib.upr        \
  294.     fonts/readme.txt
  295.  
  296. UTILFILES = \
  297.     util/getopt.c        \
  298.     util/compile_metrics.c
  299.  
  300.  
  301. # End of distribution file listing -----------------------------------------
  302.  
  303. DISTFILES = $(PDFLIBFILES) $(CLIENTFILES) $(DOCFILES) $(PDFFILES) $(TESTFILES) $(BINDFILES) $(AFMFILES) $(BUILDFILES) $(UTILFILES)
  304.  
  305. # Text files will be subjected to line end conversion before makeing a release
  306. CONVFILES = $(PDFLIBFILES) $(CLIENTFILES) $(AFMFILES) $(DOCFILES) $(BINDFILES) $(UTILFILES)
  307.  
  308. MACDEV="Daten:Develop"
  309.  
  310. # We don't use a symbolic link to . because our simple lineend conversion
  311. # doesn't preserve file attributes.
  312. # The touch command is necessary because the "version" target changes the
  313. # file access times of the SWIG-generated wrapper files, resulting
  314. # in unnecessary attempts to launch SWIG on client systems.
  315.  
  316. dist: version depend
  317.     touch bind/*/*.c;                \
  318.     $(RM) -r $(DIRNAME) $(ZIPFILE) $(TARFILE).gz;    \
  319.     mkdir $(DIRNAME);                \
  320.     cp -a . $(DIRNAME);                \
  321.     (for i in $(DISTFILES); do            \
  322.         echo $$i;                \
  323.     done) | sed "s;.*;$(DIRNAME)/&;" >distfilelist; \
  324.     tar cvf  $(TARFILE) `cat distfilelist`;        \
  325.     gzip -9 $(TARFILE);                \
  326.     cd $(DIRNAME); lineend -d $(CONVFILES); cd ..;    \
  327.     zip -9 $(ZIPFILE) `cat distfilelist`;        \
  328.     $(RM) -r $(DIRNAME) distfilelist;        \
  329.     tar xvfz $(TARFILE).gz;                \
  330.     cd $(DIRNAME); lineend -m $(CONVFILES); cd ..;
  331.  
  332. # We don't bother with dependencies in the sample files since these
  333. # don't really change.
  334.  
  335. depend:
  336.     -cd pdflib && $(MAKE) depend
  337.     -cd test && $(MAKE) depend
  338.     -cd clients && $(MAKE) depend
  339.     -cd util && $(MAKE) depend
  340.  
  341. swig:
  342.     -cd bind/java && $(MAKE)
  343.     -cd bind/perl && $(MAKE)
  344.     -cd bind/python && $(MAKE)
  345.     -cd bind/tcl && $(MAKE)
  346.  
  347. # Patch version numbers into several files. We do this here in order
  348. # to avoid cluttering the distribution with too many *.in files.
  349. # Note that some generated files get their version number patched
  350. # by down-stream Makefiles because those files will be built by
  351. # make themselves.
  352. # The Makefiles, of course, will get p